import 'package:flutter/material.dart';

class UserInfo with ChangeNotifier {
  Map<String, dynamic> _userInfo;
  Map<String, dynamic> get userInfo => _userInfo;

  String _token;
  String get token => _token;

  void setUserInfo(Map<String, dynamic> data) {
    _userInfo = data;
    notifyListeners();
  }

  void setToken(String data) {
    _token = data;
    notifyListeners();
  }
}
